<template>
  <el-row style="height: 72px;border-radius: 16px;margin-bottom:6px;float: left;display: flex" class="item-container">
    <el-col style="width: 72px;height: 72px;">
      <el-image
        style="width: 40px; height: 40px;margin: 16px;" :src=logo @error="errEvent" fit="fit"></el-image>
    </el-col>
    <el-col style="flex: 1;height: 72px;padding: 16px 4px;">
      <el-row style="text-align: revert;height: 24px;">
        {{nameP}}
      </el-row>
      <el-row style="width: 100%;font-size: 10px">
        {{infoP}}
      </el-row>
    </el-col>
  </el-row>
</template>

<script>
import logo_png from '@/assets/logo/logo.png'


export default {
  name: "serverItem",
  props: {
    nameP: {
      type: String,
      default: "",
    },
    infoP: {
      type: String,
      default: ""
    },
    logoP: {
      type: String,
      default: ""
    }
  },
  data() {
    return {
        errLogo:logo_png,
        logo: ""
    }
  },
  created() {

  },
  methods: {
    errEvent(err) {
        this.logo= this.errLogo;
    }
  },
  watch: {
    logoP(val) {
      this.logo = val
    }
  },
  computed: {},
  filters: {}
}
</script>
<style scoped>

.item-container {


  color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 1.4vw;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;


}






</style>
